﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.String>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add Essay Question
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Add a question</legend>

        <div class="editor-label">
            Question:
        </div>

        <div class="editor-field">
              <%: Html.TextBox("question", Model, new { @class = "longTextField" })%>
            <%: Html.ValidationMessage("question") %>
        </div>


        <p>
            <%: Html.ActionLink("Cancel", "Index") %>
            <input type="submit" name="qtype" value="Save and add another essay question" />
            <input type="submit" name="qtype" value="Save and add another multiple choice question" />
        </p>
    </fieldset>
<% } %>


    


</asp:Content>
